<?php
$Id				= $func->html_get('u2');
$Row_Result   	= $news_class->GetById($Id);	
if(is_array($Row_Result) && $Row_Result[0]['status']==1){
	$type 				= $Row_Result[0]['type'];
	$status 			= $Row_Result[0]['status'];	
	$sort 				= $Row_Result[0]['sort'];	
	$image 				= $Row_Result[0]['image'];	
	$create_date		= $Row_Result[0]['create_date'];	
	$RowDetail			= $news_detail_class->GetByIdNews(0, 0, $Id, $WEB_LANGUAGE);	
	$RowNews			= $news_class->GetByAll(4, 0, $type, 1);
}else{
	$RowDetail = 0;
}
?>
<div class="conter_top db">
	<?php include 'application/view/default/flash.php';?>
</div><!--end conter_top-->

<div class="main db">
	<div class="main_left dib">  
    	<?php if(is_array($RowDetail)){?>  	
    	<div class="page db">        	
        	<div class="page_title icon_ct db"><span><?php echo $RowDetail[0]['title'];?></span></div>
            <div class="page_content db">
            	<?php echo $RowDetail[0]['content'];?>            	
            </div><!--end page_content-->            
        </div><!--end page-->
		
        <div class="page db">
        	<div class="page_title db"><span><?php echo $config_nc->News_3;?></span></div>
			<ul class="page_related db">
            	<?php 
				if(is_array($RowNews)){
					for($connecti=0;$connecti<count($RowNews);$connecti++){
						if($RowNews[$connecti]['id_news']!=$Id){
							$RowDetail	= $news_detail_class->GetByIdNews(1, 0, $RowNews[$connecti]['id_news'], $WEB_LANGUAGE);
				?>  
            	<li><a href="<?php echo $WEB_DOMAIN;?>/?u1=news-detail&u2=<?php echo $RowNews[$connecti]['id_news'];?>"><?php echo $RowDetail[0]['title'];?></a></li>
					<?php 
						}
                    } 
                }
                ?>
            </ul><!--end page_related-->
        </div><!--end page-->
		<?php } ?>
    </div><!--end main_left-->
    <div class="main_right dib"><span>
    	<?php include 'application/view/template/right.php';?>
    </span></div>
</div><!--end main-->
